import { deleteList } from '@/api/subsystemManagement'

/**
 * 删除被选中的系统的集合
 * @param {被选中的系统集合} selectedList
 * @returns
 */
export function deleteSelectSystems(selectedList) {
  return new Promise((resolve, reject) => {
    deleteList(selectedList).then(res => {
      if (res === true) {
        resolve('删除成功')
      } else {
        reject('删除失败')
      }
    }).catch((error) => {
      reject(error.message)
    })
  })
}

